package com.ada.base.security.service;

import com.ada.base.common.PageResult;
import com.ada.base.security.dto.PasswordDto;
import com.ada.base.security.entity.User;
import com.ada.base.security.entity.UserRole;

import java.util.List;

public interface UserService {
    PageResult userList(long pageNum, int pageSize);

    void allocRole(List<UserRole> userRoles);

    void allocRole(List<UserRole> userRoles, int type);

    int add(User user);

    boolean modifyPassword(PasswordDto passwordDto);

    List<User> queryByAuthority(String code);
}
